Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][cli] Fix Pulsar standalone shutdown - bkCluster wasn't closed #22868

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Jun 7, 2024

Motivation

Pulsar standalone doesn't shutdown cleanly. bkCluster isn't closed when the shutdown hook executes. This problem has been present since 2.11.0 (#15478).

Modifications

  • delegate the shutdown call to PulsarStandalone.close instead of duplicating the code in PulsarStandaloneStarter shutdown hook
    • PulsarStandaloneStarter's shutdown hook didn't contain bkCluster.close
  • refactor the code so that this can be tested without resource leaks
  • use dynamically allocated ports so that tests don't fail with port conflicts

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@lhotari lhotari added this to the 3.4.0 milestone Jun 7, 2024
@lhotari lhotari self-assigned this Jun 7, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 7, 2024
@lhotari lhotari force-pushed the lh-fix-pulsar-standalone-shutdown branch from f75bce2 to 534fde9 Compare June 7, 2024 12:12
@lhotari lhotari force-pushed the lh-fix-pulsar-standalone-shutdown branch from 534fde9 to fb41d8d Compare June 7, 2024 12:14
@lhotari lhotari merged commit c5cc25e into apache:master Jun 7, 2024
52 of 53 checks passed
lhotari added a commit that referenced this pull request Jun 7, 2024
lhotari added a commit that referenced this pull request Jun 10, 2024
lhotari added a commit that referenced this pull request Jun 10, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 17, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 25, 2024
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants